export default [
  {
    path: '/index',
    name: 'index',
    component: () => import('@/views/Index.vue'),
    meta: {
      title: '牛客网-首页'
    }
  },
  {
    path: '/',
    redirect: '/index'
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('@/views/Register.vue'),
    meta: {
      title: '牛客网-注册'
    }
  },
  {
    path: '/activation',
    name: 'activation',
    component: () => import('@/views/activation/Activation.vue'),
    meta: {
      title: '牛客网-激活账号'
    }
  },
  {
    path: '/activation/:userId/:code',
    name: 'activationResult',
    component: () => import('@/views/activation/ActivationResult.vue'),
    meta: {
      title: '牛客网-操作结果'
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue'),
    meta: {
      title: '牛客网-登录'
    }
  },
  {
    path: '/forget',
    name: 'forget',
    component: () => import('@/views/Forget.vue'),
    meta: {
      title: '牛客网-重置密码'
    }
  },
  {
    path: '/setting',
    name: 'setting',
    component: () => import('@/views/Setting.vue'),
    meta: {
      title: '牛客网-账号设置'
    }
  },
  {
    path: '/discuss/detail/:id',
    name: 'discussDetail',
    component: () => import('@/views/DiscussDetail.vue'),
    meta: {
      title: '牛客网-帖子详情'
    }
  },
  {
    path: '/letter',
    name: 'letter',
    component: () => import('@/views/Letter.vue'),
    meta: {
      title: '牛客网-私信列表'
    }
  },
  {
    path: '/letter/detail/:id',
    name: 'letterDetail',
    component: () => import('@/views/LetterDetail.vue'),
    meta: {
      title: '牛客网-私信详情'
    }
  },
  {
    path: '/profile/:id',
    name: 'profile',
    component: () => import('@/views/Profile.vue'),
    meta: {
      title: '牛客网-个人主页'
    }
  },
  {
    path: '/profile/:id/post',
    name: 'my-post',
    component: () => import('@/views/MyPost.vue'),
    meta: {
      title: '牛客网-个人主页'
    }
  },
  {
    path: '/profile/:id/reply',
    name: 'my-reply',
    component: () => import('@/views/MyReply.vue'),
    meta: {
      title: '牛客网-个人主页'
    }
  },
  {
    path: '/profile/:id/followee',
    name: 'followee',
    component: () => import('@/views/Followee.vue'),
    meta: {
      title: '牛客网-关注'
    }
  },
  {
    path: '/profile/:id/follower',
    name: 'follower',
    component: () => import('@/views/Follower.vue'),
    meta: {
      title: '牛客网-关注'
    }
  },
  {
    path: '/notice',
    name: 'notice',
    component: () => import('@/views/Notice.vue'),
    meta: {
      title: '牛客网-通知'
    }
  },
  {
    path: '/notice/detail/:topic',
    name: 'noticeDetail',
    component: () => import('@/views/NoticeDetail.vue'),
    meta: {
      title: '牛客网-通知详情'
    }
  },
  {
    path: '/search',
    name: 'search',
    component: () => import('@/views/Search.vue'),
    meta: {
      title: '牛客网-搜索结果'
    }
  },
  {
    path: '/visit',
    name: 'visit',
    component: () => import('@/views/Visit.vue'),
    meta: {
      title: '牛客网-访客统计'
    }
  }
]
